programming4us
           
 
 
Windows

Windows 7 : Adding Folders and Files to the Default Website (part 3) - Adding a Folder to the Default Website

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
3/22/2011 9:21:36 AM

Adding a Folder to the Default Website

To add a folder to the Windows 7 default website, you have two choices:

  • Add the folder manually.

  • Add the folder as a new virtual directory.

The next two sections provide you with the details.

Adding a Folder Manually

Adding a folder to the Windows 7 default website is not all that different from adding a file. That is, you can create a new subfolder within the wwwroot folder, or copy or move an existing folder and paste it within wwwroot. To access web content within the new folder, tack the folder name and filename to the default website address. For example, if you create a subfolder named photos within the wwwroot folder, and the main page is named photos.htm, you access the content by entering the following address into the browser:

http://localhost/photos/photos.htm

Note that you can save some wear and tear on your typing fingers by changing the name of the main content file to one of the following:

default.htm
default.asp
index.htm
index.html
default.aspx

When you use one of these names, IIS displays the file by default if you don’t specify a filename as part of the URL. For example, if you rename the photos.htm file to default.htm, you can access the file just by specifying the folder path in the URL:

http://localhost/photos/

Adding a Folder as a New Virtual Directory

When you add a folder manually, IIS Manager detects the new folder and adds it to the folder content. (If you don’t see the folder right away, switch to Content View, right-click Default Web Site, and then click Refresh.) However, you can also use IIS Manager to create a new folder within the default website. Here are the steps to follow:

1.
In IIS Manager, open the Computer, Sites, Default Web Site branch (where Computer is the name of your Windows 7 PC).

2.
Right-click Default Web Site, and then click Add Virtual Directory. IIS Manager displays the Add Virtual Directory dialog box. Figure 6 shows a completed version of the dialog box.



Figure 6. Use the Add Virtual Directory dialog box to add a folder to your website using IIS Manager.


3.
Use the Alias text box to enter an alias for the virtual directory. The alias is the name that will appear in IIS Manager as a sub-branch of the default website.

Note

The alias doesn’t have to be the same as the name of the virtual directory itself. For example, if you give the name photos to the new virtual directory, you could use something like Photos Virtual Directory as the alias.

4.
To specify the location of the virtual directory, you have three choices:

  • If the folder exists and you know the full pathname (drive and folders), type it in the Physical Path text box.

  • If the folder exists and you’re not sure of the full pathname (or it’s too long to type), click the Browse (...) button, use the Browse for Folder dialog box to select the folder, and then click OK.

  • If the folder doesn’t exist, click Browse (...), use the Browse for Folder dialog box to select the folder within which you want the new folder to appear (for example, wwwroot), click Make New Folder, type the folder name, press Enter, and then click OK.

5.
Click OK.

Figure 7 shows the Default Web Site in IIS Manager with the new virtual directory added.

Figure 7. The new virtual directory appears as part of the default website in IIS Manager.
Other -----------------
- Turning Windows 7 into a Web Server : Understanding the Default Website
- Turning Windows 7 into a Web Server : Accessing Your Website
- Windows 7 : Installing Internet Information Services
- Windows 7 : Using Virtual Private Network Connections
- Windows 7 : Using Dynamic DNS to Access Your Network & Configuring a Network Computer for Remote Administration
- Windows 7 : Connecting to a Remote Desktop via the Internet
- Windows 7 : Connecting to the Remote Desktop (part 2) - Making an Advanced Connection
- Windows 7 : Connecting to the Remote Desktop (part 1) - Making a Basic Connection
- Windows 7 : Setting Up the Remote Computer as a Host (part 2) - Configuring XP to Act as a Remote Desktop Host
- Windows 7 : Setting Up the Remote Computer as a Host (part 1) - Configuring Windows 7 or Vista to Act as a Remote Desktop Host
- Windows 7 : Working with Network Files Offline (part 6) - Dealing with Synchronization Conflicts
- Windows 7 : Working with Network Files Offline (part 5) - Synchronizing Your Offline Files
- Windows 7 : Working with Network Files Offline (part 4) - Working with Network Files While You’re Offline
- SOA with .NET and Windows Azure : WCF Discovery (part 3) - Discovery Proxies for Managed Discovery & Implicit Service Discovery
- SOA with .NET and Windows Azure : WCF Discovery (part 2) - Locating a Service Ad Hoc & Sending and Receiving Service Announcements
- SOA with .NET and Windows Azure : WCF Discovery (part 1) - Discovery Modes
- Windows 7 : Working with Network Files Offline (part 3) - Prohibiting a Network Folder from Being Made Available Offline & Encrypting Offline Files
- Windows 7 : Working with Network Files Offline (part 2) - Changing the Amount of Disk Space Used by Offline Files
- Windows 7 : Working with Network Files Offline (part 1) - Activating the Offline Files Feature & Making a File or Folder Available for Offline Use
- Windows 7 : Sharing Resources with the Network (part 2) - Monitoring Your Shared Resources
 
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
- First look: Apple Watch

- 3 Tips for Maintaining Your Cell Phone Battery (part 1)

- 3 Tips for Maintaining Your Cell Phone Battery (part 2)
programming4us programming4us